$(function(){
	$("form#createRoomForm").validate({
		rules: {
			name: 'required',
			type: 'required',
			visible: 'required'
		},
		messages: {
			name: {
				required: "请输入房间名称"
			},
			type: {
				required: "请选择房间类型"
			},
			visible: {
				required: "请选择房间可见类型"
			}
		}
	});
});